﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MappingStub
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args[0] == "random")
            {
//                generates random path
                Random r = new Random();
                for (int i = 0; i < int.Parse(args[1]); i++)
                {
                    int x = r.Next() % 400;
                    int y = r.Next() % 400;
                    Console.Write(string.Format("{0},{1}:",x,y));
                }
            }
            else
            {

                WritePoint(0, 0);
                int basex = 10;
                for (int i = 0; i < 15; i++)
                {
                    WritePoint(basex + i, 10);
                }
                WritePoint(30, 70);

                int basey = 20;
                for (int i = 0; i < 20; i++)
                {
                    WritePoint(50, basey + i);
                }
                WritePoint(70, 50);

                basex = basey = 60;
                for (int i = 0; i < 20; i++)
                {
                    WritePoint(basex + i, basey + i);
                }
                WritePoint(150, 130);

            }
        }

        public static void WritePoint(int x, int y)
        {
            Console.Write(string.Format("{0},{1}:",x,y));
        }
    }
}
